//行政区域管理 处理窗体
Ext.define("SHApp.System.AdministrativeArea.Form", {
    extend: "BLBTSystem.Form",
    submitUrl: "api/administrativearea?format=json",
    winWidth: 665,
    winHeight: 215,
    initComponent: function () {
        Ext.apply(this);
        this.createItems();
        this.callParent(arguments);
    },
    createItems: function () {
        var me = this;
        this.items = [{
            width: 300,
            border: false,
            bodyStyle: "background:#DFE9F6",
            layout: { type: "vbox", align: "stretch" },
            items: [
				{
				    xtype: "textfield",
				    fieldLabel: "ID",
				    name: "Id",
				    hidden: true
				}, {
				    fieldLabel: "<span style='color:red'>*</span>区域编号",
				    allowBlank: false,
				    blankText: "请输入区域编号!",
				    xtype: "textfield",
				    name: "Code",
				    maxLength: 50
				}, {
				    fieldLabel: "行政级别",
				    xtype: "numberfield",
				    name: "Level",
				    maxLength: 9,
				    enforceMaxLength: true
				}, {
				    fieldLabel: "省份",
				    xtype: "textfield",
				    name: "Province",
				    maxLength: 50
				}]
        }, {
            width: 300,
            border: false,
            bodyStyle: "background:#DFE9F6",
            layout: { type: "vbox", align: "stretch" },
            items: [{
                fieldLabel: "市",
                xtype: "textfield",
                name: "City",
                maxLength: 50
            }, {
                fieldLabel: "区县",
                xtype: "textfield",
                name: "County",
                maxLength: 50
            }, {
                fieldLabel: "拼音",
                xtype: "textfield",
                name: "Spell",
                maxLength: 50
            }]
        }
		];
    }

})